package com.tbit.uqbike.object.pojo.dto;

import com.tbit.uqbike.object.value.LoginInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MachineSearchDTO implements Serializable {
    private static final long serialVersionUID = -7010895410129954687L;

    //登录人
    private LoginInfo info;
    //品牌id、加盟商id、区域id,多个使用,分隔开(前端传传递的)
    private String accountIds;

    //搜索类型(车辆编号、车辆设备、电池编码、车架号、车牌号、电机号、头盔mac地址)
    //com.tbit.uqbike.constant.Constants.machineSearchTypeMap
    private Integer searchType;
    //搜索内容，多个使用,分隔开
    private List<String> searchNoValues;
    //每页的数量
    private Integer rowCount = 10;
    //页码
    private Integer pageNO = 1;
    //车辆类型(电动车：0、自行车：1)
    private Integer machineType;

    private List<Integer> tagIds;
    //组id
    private Integer machineGroupId;

    //搜索层级类型(1、品牌；2、加盟商；3、区域)
    private Integer type;
    //品牌id、加盟商id、区域id(后端转换的)
    List<Integer> accountIdList;
    //开始的其实下标
    private Integer start;
}
